package game.main;

import game.util.Modalidade;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends Activity {
	private static Modalidade modalidade;

	public static Modalidade getModalidade() {
		return modalidade;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		((Button) findViewById(R.id.btnOnePlayer)).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				modalidade = Modalidade.ONEPLAYER;
				MainActivity.this.startActivity(new Intent(MainActivity.this, GameActivity.class));
			}
		});
		((Button) findViewById(R.id.btnTwoPlayerLocal)).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				modalidade = Modalidade.TWOPLAYER_LOCAL;
				MainActivity.this.startActivity(new Intent(MainActivity.this, NomearPlayersActivity.class));
			}
		});
		((Button) findViewById(R.id.btnTwoPlayer)).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Toast.makeText(MainActivity.this, "Não implementado!!!", Toast.LENGTH_LONG).show();
			}
		});
	}
}
